//
//  LDSBaseTableViewCell.m
//  LDSMVVMBase
//
//  Created by kai_leedarson on 2017/9/30.
//  Copyright © 2017年 maple_leedarson. All rights reserved.
//

#import "LDSBaseTableViewCell.h"

@implementation LDSBaseTableViewCell
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super initWithCoder:aDecoder]) {
        [self setup];
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setup];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setup];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self setup];
    }
    return self;
}

- (void)setup {
    [self viewSetup];
    [self frameSetup];
}

- (void)viewSetup {
    
}

- (void)frameSetup {
    
}

- (void)setModel:(id)model {
    _model = model;
}


+ (CGFloat)height{
    return 0;
}

+ (CGFloat)height:(id)model width:(CGFloat)width
{
    return [self height:model];
}

+ (CGFloat)height:(id)model {
    return [self height];
}

@end
